package com.bupt.liutong.front.sch.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.bupt.liutong.admin.core.base.BaseAction;
import com.bupt.liutong.admin.sch.bo.AlbumPhotoBo;
import com.bupt.liutong.admin.sch.form.AlbumPhotoForm;

public class AlbumPhotoAction extends BaseAction {

	private AlbumPhotoBo albumPhotoBo;

	public ActionForward list(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		AlbumPhotoForm albumPhotoForm = (AlbumPhotoForm) form;
		albumPhotoForm.setPageSize(18);
		request.setAttribute("albumPhotoFormList", albumPhotoBo.getAlbumPhotosByPage(
				albumPhotoForm, request));
		putPageInfo(request, albumPhotoForm);
		return mapping.findForward("list");
	}

	public void setAlbumPhotoBo(AlbumPhotoBo albumPhotoBo) {
		this.albumPhotoBo = albumPhotoBo;
	}
}
